Skip to content

Conversation

@xkelxmc
Copy link

@xkelxmc xkelxmc commented Dec 4, 2025

Add https://github.com/xkelxmc/eden-tanstack-query - type-safe TanStack Query integration for Eden.

Features

  • Full TypeScript inference from Elysia routes
  • Native TanStack Query patterns (useQuery, useMutation, useInfiniteQuery)
  • Query options factories: queryOptions(), mutationOptions(), infiniteQueryOptions()
  • Automatic query key generation from route paths

Example

import { createEdenTanStackQuery } from 'eden-tanstack-react-query'
import { useQuery, useMutation } from '@tanstack/react-query'
import type { App } from './server'

const { EdenProvider, useEden } = createEdenTanStackQuery<App>()

function UserList() {
  const eden = useEden()

  // Fully typed query
  const { data } = useQuery(eden.users.get.queryOptions())

  // Fully typed mutation
  const createUser = useMutation(eden.users.post.mutationOptions())
}

Similar to @trpc/react-query but for Elysia Eden.

Summary by CodeRabbit

  • Documentation
    • Added Eden TanStack Query to the official plugins list

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 4, 2025

Walkthrough

Added a new entry for the Eden TanStack Query plugin to the Official plugins list in the documentation, including a link and description of the integration as a type-safe TanStack Query wrapper for Elysia.

Changes

Cohort / File(s) Change Summary
Documentation: Official Plugin Listing
docs/plugins/overview.md
Added new official plugin entry for Eden TanStack Query with descriptive text and link

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

Poem

🐰 A new plugin joins the fray,
TanStack Query finds its way,
Documentation blooms so bright,
Eden's tools now in the light! ✨

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately and concisely describes the main change: adding Eden TanStack Query plugin to the overview documentation.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
docs/plugins/overview.md (1)

126-127: Reformat the entry to fit on a single line.

This is the only community plugin entry that spans multiple lines. For consistency with the rest of the list, move the continuation to a single line by removing the line break.

-   [Eden TanStack Query](https://github.com/xkelxmc/eden-tanstack-query) - type-safe TanStack Query integration for Eden, like
-  @trpc/react-query but for Elysia
+   [Eden TanStack Query](https://github.com/xkelxmc/eden-tanstack-query) - type-safe TanStack Query integration for Eden, like @trpc/react-query but for Elysia
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5e5da8b and c37b589.

📒 Files selected for processing (1)
  • docs/plugins/overview.md (1 hunks)
🔇 Additional comments (2)
docs/plugins/overview.md (2)

126-127: AI summary describes incorrect section.

The summary states the entry was added to the "Official plugins list," but the new entry is in the "Community plugins" section (lines 126-127 fall after line 44 which marks the Community plugins section).


126-127: The linked repository does not exist; update to the correct project.

The GitHub repository https://github.com/xkelxmc/eden-tanstack-query does not exist. Consider linking to ap0nia/eden-query instead, which provides Eden + TanStack Query integrations.

Likely an incorrect or invalid review comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant